<style scoped>
  .weui-media-box_appmsg .weui-media-box__hd {
    font-size: 12px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: blue;
    color: #fff;
  }
  .weui-media-box__desc {
    font-size: 12px;
  }
  .weui-media-box__title {
    white-space: normal;
    font-size: 14px;
    margin-bottom: 5px;
  }
  .weui-form-preview__bd {
    text-align: left;
  }

  .weui-form-preview {
    position: relative;
    background-color: #fff;
    margin: 1%;
    border-radius: 5px;
  }
  .time {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 10px;
    color: #ccc;
  }
  .time2 {
    position: absolute;
    right: 0;
    top: 28px;
    font-size: 10px;
    color: #ccc;
  }

  .divdisable {

    font-size: 10px;
    color: #ccc;
  }

  .attachimg {
    width: 14px;
    height: 14px;
  }
  .imgicon {
    position: absolute;
    right: 0;
    bottom: 0;
  }
</style>
<!--   v-show="sellforms.length > 0"    -->
<template>
  <div class="logs">
    <div style="overflow:auto;overflow-x: hidden;" v-if="sellforms.length >0">
      <div class="weui-cells__title">已接销售订单 </div>
      <div class="weui-form-preview" v-for="(item, index) in sellforms">
        <div class="weui-form-preview__bd">
          <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
            <div class="weui-media-box__hd">
              {{item.status}}
            </div>
            <div class="weui-media-box__bd" style="position: relative;">
              <p class="time">{{item.createtime}}</p>
              <h4 class="weui-media-box__title">订单编号：{{item.sellcode}}</h4>


              <p class="time2">客户：{{item.customername}}</p>
              <span class="weui-media-box__desc">申请人：{{item.applyname}}</span>
            </div>
          </a>
        </div>
      </div>
    </div>
    <div style="overflow:auto;overflow-x: hidden;" v-if="transferapplys.length >0">
      <div class="weui-cells__title">已接调拨单</div>
      <div class="weui-form-preview" v-for="(item, index) in transferapplys">
        <div class="weui-form-preview__bd">
          <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
            <div class="weui-media-box__hd">
              {{item.status}}
            </div>
            <div class="weui-media-box__bd" style="position: relative;">
              <p class="time">{{item.createtime}}</p>
              <h4 class="weui-media-box__title">订单编号：{{item.code}}</h4>
              <p class="divdisable">调出库房：{{item.fromsrname}}</p>
              <p class="time2">调入库房：{{item.tosrname}}</p>
              <span class="weui-media-box__desc" style="padding: 10px 0em 0ex 0%;">申请人：{{item.applyname}}</span>
            </div>
          </a>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
    export default {
        name: 'OrderBaseInfo',
        data () {
            return {

            }
        },

        props: [
            'sellforms',
            'transferapplys',
            'driveName',
        ],


        // props: {
        //     sellforms:{
        //         type: Array ,
        //         default: function () {
        //             return { }
        //         }
        //     },
        //     transferapplys:{
        //         type: Array ,
        //         default: function () {
        //             return { }
        //         }
        //     },
        //     driveName: {
        //         type: String,
        //         required: true
        //     },
        //
        //
        // },
        watch: {
        },
        methods: {
        }
    }
</script>
